#ifndef __THREAD_H_
#define __THREAD_H_
#include <pthread.h>

namespace th{

class Thread{
public:
    Thread();
    virtual ~Thread();
    void start();
    void join();

private:
    virtual void run() = 0;
    static void * start_routine(void *);

private:
    pthread_t _pthid;
    bool _isRunning;
};

}//end of namespace th


#endif

